//
//  API.h
//  Test
//
//  Created by 祝文博 on 15/3/9.
//  Copyright (c) 2015年 KevinLab. All rights reserved.
//

#import "AFHTTPRequestOperationManager.h"

extern NSString * const DianpingApiBaseUrl;

@interface API : AFHTTPRequestOperationManager

+ (instancetype)sharedAPI;

- (void)getPath:(NSString *)path params:(NSDictionary *)params resultBlock:(void (^)(id responseObject, NSError *error))resultBlock;

- (void)requestWithMethod:(NSString *)method path:(NSString *)path params:(NSDictionary *)params resultBlock:(void (^)(id responseObject, NSError *error))resultBlock;

@end
